package com.example.designpattern.strategy_pattern.c;

/**
 * 具体策略角色
 */
public class ChildrenDiscount implements Discount {
    @Override
    public double calculate(double price) {
        System.out.println("儿童票：");
        return price - 10;
    }
}
